<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>Data.Time.Calendar</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">time-1.9.3: A time library</span><ul class="links" id="page-menu"><li><a href="src/Data.Time.Calendar.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Data.Time.Calendar</p></div><div id="table-of-contents"><div id="contents-list"><p class="caption" onclick="window.scrollTo(0,0)">Contents</p><ul><li><a href="#g:1">Days</a></li><li><a href="#g:2">Calendar Duration</a></li><li><a href="#g:3">Gregorian calendar</a></li><li><a href="#g:4">Week</a></li></ul></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">newtype</span> <a href="#t:Day">Day</a> = <a href="#v:ModifiedJulianDay">ModifiedJulianDay</a> {<ul class="subs"><li><a href="#v:toModifiedJulianDay">toModifiedJulianDay</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a></li></ul>}</li><li class="src short"><a href="#v:addDays">addDays</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:diffDays">diffDays</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a></li><li class="src short"><a href="#v:calendarDay">calendarDay</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></li><li class="src short"><a href="#v:calendarMonth">calendarMonth</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></li><li class="src short"><a href="#v:calendarWeek">calendarWeek</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></li><li class="src short"><a href="#v:calendarYear">calendarYear</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></li><li class="src short"><a href="#v:scaleCalendarDiffDays">scaleCalendarDiffDays</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:CalendarDiffDays">CalendarDiffDays</a> = <a href="#v:CalendarDiffDays">CalendarDiffDays</a> {<ul class="subs"><li><a href="#v:cdMonths">cdMonths</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a></li><li><a href="#v:cdDays">cdDays</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a></li></ul>}</li><li class="src short"><a href="#v:toGregorian">toGregorian</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; (<a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a>, <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a>)</li><li class="src short"><a href="#v:fromGregorian">fromGregorian</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:fromGregorianValid">fromGregorianValid</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:showGregorian">showGregorian</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a></li><li class="src short"><a href="#v:gregorianMonthLength">gregorianMonthLength</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li class="src short"><a href="#v:addGregorianMonthsClip">addGregorianMonthsClip</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:addGregorianMonthsRollOver">addGregorianMonthsRollOver</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:addGregorianYearsClip">addGregorianYearsClip</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:addGregorianYearsRollOver">addGregorianYearsRollOver</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:addGregorianDurationClip">addGregorianDurationClip</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:addGregorianDurationRollOver">addGregorianDurationRollOver</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></li><li class="src short"><a href="#v:diffGregorianDurationClip">diffGregorianDurationClip</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></li><li class="src short"><a href="#v:diffGregorianDurationRollOver">diffGregorianDurationRollOver</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></li><li class="src short"><a href="#v:isLeapYear">isLeapYear</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:DayOfWeek">DayOfWeek</a><ul class="subs"><li>= <a href="#v:Monday">Monday</a></li><li>| <a href="#v:Tuesday">Tuesday</a></li><li>| <a href="#v:Wednesday">Wednesday</a></li><li>| <a href="#v:Thursday">Thursday</a></li><li>| <a href="#v:Friday">Friday</a></li><li>| <a href="#v:Saturday">Saturday</a></li><li>| <a href="#v:Sunday">Sunday</a></li></ul></li><li class="src short"><a href="#v:dayOfWeek">dayOfWeek</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Days</h1></a><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Day" class="def">Day</a> <a href="src/Data.Time.Calendar.Days.html#Day" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></p><div class="doc"><p>The Modified Julian Day is a standard count of days, with zero being the day 1858-11-17.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ModifiedJulianDay" class="def">ModifiedJulianDay</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:toModifiedJulianDay" class="def">toModifiedJulianDay</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Day">Instances</h4><details id="i:Day" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:Data:1"></span> <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Calendar.Days.html#line-14" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:Data:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Days.html">Data.Time.Calendar.Days</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gfoldl">gfoldl</a> :: (<span class="keyword">forall</span> d b. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; c (d -&gt; b) -&gt; d -&gt; c b) -&gt; (<span class="keyword">forall</span> g. g -&gt; c g) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; c <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/Data.Data.html#gfoldl" class="link">Source</a> <a href="#v:gfoldl" class="selflink">#</a></p><p class="src"><a href="#v:gunfold">gunfold</a> :: (<span class="keyword">forall</span> b r. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> b =&gt; c (b -&gt; r) -&gt; c r) -&gt; (<span class="keyword">forall</span> r. r -&gt; c r) -&gt; <a href="../base/Data-Data.html#t:Constr" title="Data.Data">Constr</a> -&gt; c <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/Data.Data.html#gunfold" class="link">Source</a> <a href="#v:gunfold" class="selflink">#</a></p><p class="src"><a href="#v:toConstr">toConstr</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Data.html#t:Constr" title="Data.Data">Constr</a> <a href="../base/src/Data.Data.html#toConstr" class="link">Source</a> <a href="#v:toConstr" class="selflink">#</a></p><p class="src"><a href="#v:dataTypeOf">dataTypeOf</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Data.html#t:DataType" title="Data.Data">DataType</a> <a href="../base/src/Data.Data.html#dataTypeOf" class="link">Source</a> <a href="#v:dataTypeOf" class="selflink">#</a></p><p class="src"><a href="#v:dataCast1">dataCast1</a> :: <a href="../base/Data-Typeable.html#t:Typeable" title="Data.Typeable">Typeable</a> t =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; c (t d)) -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (c <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) <a href="../base/src/Data.Data.html#dataCast1" class="link">Source</a> <a href="#v:dataCast1" class="selflink">#</a></p><p class="src"><a href="#v:dataCast2">dataCast2</a> :: <a href="../base/Data-Typeable.html#t:Typeable" title="Data.Typeable">Typeable</a> t =&gt; (<span class="keyword">forall</span> d e. (<a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d, <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> e) =&gt; c (t d e)) -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (c <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) <a href="../base/src/Data.Data.html#dataCast2" class="link">Source</a> <a href="#v:dataCast2" class="selflink">#</a></p><p class="src"><a href="#v:gmapT">gmapT</a> :: (<span class="keyword">forall</span> b. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> b =&gt; b -&gt; b) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/Data.Data.html#gmapT" class="link">Source</a> <a href="#v:gmapT" class="selflink">#</a></p><p class="src"><a href="#v:gmapQl">gmapQl</a> :: (r -&gt; r' -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; r <a href="../base/src/Data.Data.html#gmapQl" class="link">Source</a> <a href="#v:gmapQl" class="selflink">#</a></p><p class="src"><a href="#v:gmapQr">gmapQr</a> :: <span class="keyword">forall</span> r r'. (r' -&gt; r -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; r <a href="../base/src/Data.Data.html#gmapQr" class="link">Source</a> <a href="#v:gmapQr" class="selflink">#</a></p><p class="src"><a href="#v:gmapQ">gmapQ</a> :: (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; [u] <a href="../base/src/Data.Data.html#gmapQ" class="link">Source</a> <a href="#v:gmapQ" class="selflink">#</a></p><p class="src"><a href="#v:gmapQi">gmapQi</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; u <a href="../base/src/Data.Data.html#gmapQi" class="link">Source</a> <a href="#v:gmapQi" class="selflink">#</a></p><p class="src"><a href="#v:gmapM">gmapM</a> :: <a href="../base/Prelude.html#t:Monad" title="Prelude">Monad</a> m =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; m <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/Data.Data.html#gmapM" class="link">Source</a> <a href="#v:gmapM" class="selflink">#</a></p><p class="src"><a href="#v:gmapMp">gmapMp</a> :: <a href="../base/Control-Monad.html#t:MonadPlus" title="Control.Monad">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; m <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/Data.Data.html#gmapMp" class="link">Source</a> <a href="#v:gmapMp" class="selflink">#</a></p><p class="src"><a href="#v:gmapMo">gmapMo</a> :: <a href="../base/Control-Monad.html#t:MonadPlus" title="Control.Monad">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; m <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/Data.Data.html#gmapMo" class="link">Source</a> <a href="#v:gmapMo" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:Enum:2"></span> <a href="../base/Prelude.html#t:Enum" title="Prelude">Enum</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Calendar.Days.html#line-20" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:Enum:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Days.html">Data.Time.Calendar.Days</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/GHC.Enum.html#succ" class="link">Source</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/GHC.Enum.html#pred" class="link">Source</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/GHC.Enum.html#toEnum" class="link">Source</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="../base/src/GHC.Enum.html#fromEnum" class="link">Source</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] <a href="../base/src/GHC.Enum.html#enumFrom" class="link">Source</a> <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] <a href="../base/src/GHC.Enum.html#enumFromThen" class="link">Source</a> <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] <a href="../base/src/GHC.Enum.html#enumFromTo" class="link">Source</a> <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] <a href="../base/src/GHC.Enum.html#enumFromThenTo" class="link">Source</a> <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:Ix:3"></span> <a href="../base/Data-Ix.html#t:Ix" title="Data.Ix">Ix</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Calendar.Days.html#line-31" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:Ix:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Days.html">Data.Time.Calendar.Days</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:range">range</a> :: (<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>, <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) -&gt; [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] <a href="../base/src/GHC.Ix.html#range" class="link">Source</a> <a href="#v:range" class="selflink">#</a></p><p class="src"><a href="#v:index">index</a> :: (<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>, <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="../base/src/GHC.Ix.html#index" class="link">Source</a> <a href="#v:index" class="selflink">#</a></p><p class="src"><a href="#v:unsafeIndex">unsafeIndex</a> :: (<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>, <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="../base/src/GHC.Ix.html#unsafeIndex" class="link">Source</a> <a href="#v:unsafeIndex" class="selflink">#</a></p><p class="src"><a href="#v:inRange">inRange</a> :: (<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>, <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="../base/src/GHC.Ix.html#inRange" class="link">Source</a> <a href="#v:inRange" class="selflink">#</a></p><p class="src"><a href="#v:rangeSize">rangeSize</a> :: (<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>, <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="../base/src/GHC.Ix.html#rangeSize" class="link">Source</a> <a href="#v:rangeSize" class="selflink">#</a></p><p class="src"><a href="#v:unsafeRangeSize">unsafeRangeSize</a> :: (<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>, <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>) -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="../base/src/GHC.Ix.html#unsafeRangeSize" class="link">Source</a> <a href="#v:unsafeRangeSize" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:Read:4"></span> <a href="../base/Text-Read.html#t:Read" title="Text.Read">Read</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Format.Parse.html#line-151" class="link">Source</a> <a href="#t:Read" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:Read:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-Parse.html">Data.Time.Format.Parse</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/GHC.Read.html#readsPrec" class="link">Source</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="../base/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] <a href="../base/src/GHC.Read.html#readList" class="link">Source</a> <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="../base/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="../base/src/GHC.Read.html#readPrec" class="link">Source</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="../base/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] <a href="../base/src/GHC.Read.html#readListPrec" class="link">Source</a> <a href="#v:readListPrec" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:Show:5"></span> <a href="../base/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Calendar.Gregorian.html#line-121" class="link">Source</a> <a href="#t:Show" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:Show:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Gregorian.html">Data.Time.Calendar.Gregorian</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="../base/src/GHC.Show.html#showsPrec" class="link">Source</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="../base/src/GHC.Show.html#show" class="link">Source</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a>] -&gt; <a href="../base/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="../base/src/GHC.Show.html#showList" class="link">Source</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:NFData:6"></span> <a href="../deepseq/Control-DeepSeq.html#t:NFData" title="Control.DeepSeq">NFData</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Calendar.Days.html#line-16" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:NFData:6"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Days.html">Data.Time.Calendar.Days</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:rnf">rnf</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; () <a href="../deepseq/src/Control.DeepSeq.html#rnf" class="link">Source</a> <a href="#v:rnf" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:Eq:7"></span> <a href="../base/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Calendar.Days.html#line-14" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:Eq:7"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Days.html">Data.Time.Calendar.Days</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:Ord:8"></span> <a href="../base/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Calendar.Days.html#line-14" class="link">Source</a> <a href="#t:Day" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:Ord:8"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Days.html">Data.Time.Calendar.Days</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Ord.html#t:Ordering" title="Data.Ord">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="#v:min" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:FormatTime:9"></span> <a href="Data-Time-Format-Internal.html#t:FormatTime" title="Data.Time.Format.Internal">FormatTime</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Format.Format.Instances.html#line-94" class="link">Source</a> <a href="#t:FormatTime" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:FormatTime:9"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-Format-Instances.html">Data.Time.Format.Format.Instances</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:formatCharacter">formatCharacter</a> :: <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (FormatOptions -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a>) <a href="src/Data.Time.Format.Format.Class.html#formatCharacter" class="link">Source</a> <a href="#v:formatCharacter" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:ISO8601:10"></span> <a href="Data-Time-Format-ISO8601.html#t:ISO8601" title="Data.Time.Format.ISO8601">ISO8601</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Format.ISO8601.html#line-366" class="link">Source</a> <a href="#t:ISO8601" class="selflink">#</a></td><td class="doc"><p><code>yyyy-mm-dd</code> (ISO 8601:2004(E) sec. 4.1.2.2 extended format)</p></td></tr><tr><td colspan="2"><details id="i:id:Day:ISO8601:10"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-ISO8601.html">Data.Time.Format.ISO8601</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:iso8601Format">iso8601Format</a> :: <a href="Data-Time-Format-ISO8601.html#t:Format" title="Data.Time.Format.ISO8601">Format</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Format.ISO8601.html#iso8601Format" class="link">Source</a> <a href="#v:iso8601Format" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Day:ParseTime:11"></span> <a href="Data-Time-Format-Internal.html#t:ParseTime" title="Data.Time.Format.Internal">ParseTime</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a></span> <a href="src/Data.Time.Format.Parse.Instances.html#line-42" class="link">Source</a> <a href="#t:ParseTime" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Day:ParseTime:11"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-Parse-Instances.html">Data.Time.Format.Parse.Instances</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:substituteTimeSpecifier">substituteTimeSpecifier</a> :: proxy <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Format.html#t:TimeLocale" title="Data.Time.Format">TimeLocale</a> -&gt; <a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="src/Data.Time.Format.Parse.Class.html#substituteTimeSpecifier" class="link">Source</a> <a href="#v:substituteTimeSpecifier" class="selflink">#</a></p><p class="src"><a href="#v:parseTimeSpecifier">parseTimeSpecifier</a> :: proxy <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Format.html#t:TimeLocale" title="Data.Time.Format">TimeLocale</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> ParseNumericPadding -&gt; <a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a> -&gt; <a href="../base/Text-ParserCombinators-ReadP.html#t:ReadP" title="Text.ParserCombinators.ReadP">ReadP</a> <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="src/Data.Time.Format.Parse.Class.html#parseTimeSpecifier" class="link">Source</a> <a href="#v:parseTimeSpecifier" class="selflink">#</a></p><p class="src"><a href="#v:buildTime">buildTime</a> :: <a href="Data-Time-Format.html#t:TimeLocale" title="Data.Time.Format">TimeLocale</a> -&gt; [(<a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a>, <a href="../base/Data-String.html#t:String" title="Data.String">String</a>)] -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Format.Parse.Class.html#buildTime" class="link">Source</a> <a href="#v:buildTime" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:addDays" class="def">addDays</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Days.html#addDays" class="link">Source</a> <a href="#v:addDays" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:diffDays" class="def">diffDays</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> <a href="src/Data.Time.Calendar.Days.html#diffDays" class="link">Source</a> <a href="#v:diffDays" class="selflink">#</a></p></div><a href="#g:2" id="g:2"><h1>Calendar Duration</h1></a><div class="top"><p class="src"><a id="v:calendarDay" class="def">calendarDay</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#calendarDay" class="link">Source</a> <a href="#v:calendarDay" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:calendarMonth" class="def">calendarMonth</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#calendarMonth" class="link">Source</a> <a href="#v:calendarMonth" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:calendarWeek" class="def">calendarWeek</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#calendarWeek" class="link">Source</a> <a href="#v:calendarWeek" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:calendarYear" class="def">calendarYear</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#calendarYear" class="link">Source</a> <a href="#v:calendarYear" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:scaleCalendarDiffDays" class="def">scaleCalendarDiffDays</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#scaleCalendarDiffDays" class="link">Source</a> <a href="#v:scaleCalendarDiffDays" class="selflink">#</a></p><div class="doc"><p>Scale by a factor. Note that <code>scaleCalendarDiffDays (-1)</code> will not perfectly invert a duration, due to variable month lengths.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:CalendarDiffDays" class="def">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#CalendarDiffDays" class="link">Source</a> <a href="#t:CalendarDiffDays" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:CalendarDiffDays" class="def">CalendarDiffDays</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:cdMonths" class="def">cdMonths</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:cdDays" class="def">cdDays</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:CalendarDiffDays">Instances</h4><details id="i:CalendarDiffDays" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:Data:1"></span> <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#line-21" class="link">Source</a> <a href="#t:CalendarDiffDays" class="selflink">#</a></td><td class="doc"><p><em>Since: time-1.9.2</em></p></td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:Data:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-CalendarDiffDays.html">Data.Time.Calendar.CalendarDiffDays</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gfoldl">gfoldl</a> :: (<span class="keyword">forall</span> d b. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; c (d -&gt; b) -&gt; d -&gt; c b) -&gt; (<span class="keyword">forall</span> g. g -&gt; c g) -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; c <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/Data.Data.html#gfoldl" class="link">Source</a> <a href="#v:gfoldl" class="selflink">#</a></p><p class="src"><a href="#v:gunfold">gunfold</a> :: (<span class="keyword">forall</span> b r. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> b =&gt; c (b -&gt; r) -&gt; c r) -&gt; (<span class="keyword">forall</span> r. r -&gt; c r) -&gt; <a href="../base/Data-Data.html#t:Constr" title="Data.Data">Constr</a> -&gt; c <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/Data.Data.html#gunfold" class="link">Source</a> <a href="#v:gunfold" class="selflink">#</a></p><p class="src"><a href="#v:toConstr">toConstr</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="../base/Data-Data.html#t:Constr" title="Data.Data">Constr</a> <a href="../base/src/Data.Data.html#toConstr" class="link">Source</a> <a href="#v:toConstr" class="selflink">#</a></p><p class="src"><a href="#v:dataTypeOf">dataTypeOf</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="../base/Data-Data.html#t:DataType" title="Data.Data">DataType</a> <a href="../base/src/Data.Data.html#dataTypeOf" class="link">Source</a> <a href="#v:dataTypeOf" class="selflink">#</a></p><p class="src"><a href="#v:dataCast1">dataCast1</a> :: <a href="../base/Data-Typeable.html#t:Typeable" title="Data.Typeable">Typeable</a> t =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; c (t d)) -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (c <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a>) <a href="../base/src/Data.Data.html#dataCast1" class="link">Source</a> <a href="#v:dataCast1" class="selflink">#</a></p><p class="src"><a href="#v:dataCast2">dataCast2</a> :: <a href="../base/Data-Typeable.html#t:Typeable" title="Data.Typeable">Typeable</a> t =&gt; (<span class="keyword">forall</span> d e. (<a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d, <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> e) =&gt; c (t d e)) -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (c <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a>) <a href="../base/src/Data.Data.html#dataCast2" class="link">Source</a> <a href="#v:dataCast2" class="selflink">#</a></p><p class="src"><a href="#v:gmapT">gmapT</a> :: (<span class="keyword">forall</span> b. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> b =&gt; b -&gt; b) -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/Data.Data.html#gmapT" class="link">Source</a> <a href="#v:gmapT" class="selflink">#</a></p><p class="src"><a href="#v:gmapQl">gmapQl</a> :: (r -&gt; r' -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; r <a href="../base/src/Data.Data.html#gmapQl" class="link">Source</a> <a href="#v:gmapQl" class="selflink">#</a></p><p class="src"><a href="#v:gmapQr">gmapQr</a> :: <span class="keyword">forall</span> r r'. (r' -&gt; r -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; r <a href="../base/src/Data.Data.html#gmapQr" class="link">Source</a> <a href="#v:gmapQr" class="selflink">#</a></p><p class="src"><a href="#v:gmapQ">gmapQ</a> :: (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; [u] <a href="../base/src/Data.Data.html#gmapQ" class="link">Source</a> <a href="#v:gmapQ" class="selflink">#</a></p><p class="src"><a href="#v:gmapQi">gmapQi</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; u <a href="../base/src/Data.Data.html#gmapQi" class="link">Source</a> <a href="#v:gmapQi" class="selflink">#</a></p><p class="src"><a href="#v:gmapM">gmapM</a> :: <a href="../base/Prelude.html#t:Monad" title="Prelude">Monad</a> m =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; m <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/Data.Data.html#gmapM" class="link">Source</a> <a href="#v:gmapM" class="selflink">#</a></p><p class="src"><a href="#v:gmapMp">gmapMp</a> :: <a href="../base/Control-Monad.html#t:MonadPlus" title="Control.Monad">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; m <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/Data.Data.html#gmapMp" class="link">Source</a> <a href="#v:gmapMp" class="selflink">#</a></p><p class="src"><a href="#v:gmapMo">gmapMo</a> :: <a href="../base/Control-Monad.html#t:MonadPlus" title="Control.Monad">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="../base/Data-Data.html#t:Data" title="Data.Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; m <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/Data.Data.html#gmapMo" class="link">Source</a> <a href="#v:gmapMo" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:Monoid:2"></span> <a href="../base/Data-Monoid.html#t:Monoid" title="Data.Monoid">Monoid</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#line-38" class="link">Source</a> <a href="#t:CalendarDiffDays" class="selflink">#</a></td><td class="doc"><p>Additive</p></td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:Monoid:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-CalendarDiffDays.html">Data.Time.Calendar.CalendarDiffDays</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/GHC.Base.html#mempty" class="link">Source</a> <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/GHC.Base.html#mappend" class="link">Source</a> <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a>] -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/GHC.Base.html#mconcat" class="link">Source</a> <a href="#v:mconcat" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:Semigroup:3"></span> <a href="../base/Prelude.html#t:Semigroup" title="Prelude">Semigroup</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#line-33" class="link">Source</a> <a href="#t:CalendarDiffDays" class="selflink">#</a></td><td class="doc"><p>Additive</p></td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:Semigroup:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-CalendarDiffDays.html">Data.Time.Calendar.CalendarDiffDays</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-60--62-">(&lt;&gt;)</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/GHC.Base.html#%3C%3E" class="link">Source</a> <a href="#v:-60--62-" class="selflink">#</a></p><p class="src"><a href="#v:sconcat">sconcat</a> :: <a href="../base/Data-List-NonEmpty.html#t:NonEmpty" title="Data.List.NonEmpty">NonEmpty</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/GHC.Base.html#sconcat" class="link">Source</a> <a href="#v:sconcat" class="selflink">#</a></p><p class="src"><a href="#v:stimes">stimes</a> :: <a href="../base/Prelude.html#t:Integral" title="Prelude">Integral</a> b =&gt; b -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="../base/src/GHC.Base.html#stimes" class="link">Source</a> <a href="#v:stimes" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:Show:4"></span> <a href="../base/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#line-46" class="link">Source</a> <a href="#t:CalendarDiffDays" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:Show:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-CalendarDiffDays.html">Data.Time.Calendar.CalendarDiffDays</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="../base/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="../base/src/GHC.Show.html#showsPrec" class="link">Source</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="../base/src/GHC.Show.html#show" class="link">Source</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a>] -&gt; <a href="../base/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="../base/src/GHC.Show.html#showList" class="link">Source</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:Eq:5"></span> <a href="../base/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Calendar.CalendarDiffDays.html#line-20" class="link">Source</a> <a href="#t:CalendarDiffDays" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:Eq:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-CalendarDiffDays.html">Data.Time.Calendar.CalendarDiffDays</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:FormatTime:6"></span> <a href="Data-Time-Format-Internal.html#t:FormatTime" title="Data.Time.Format.Internal">FormatTime</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Format.Format.Instances.html#line-175" class="link">Source</a> <a href="#t:FormatTime" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:FormatTime:6"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-Format-Instances.html">Data.Time.Format.Format.Instances</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:formatCharacter">formatCharacter</a> :: <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (FormatOptions -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a>) <a href="src/Data.Time.Format.Format.Class.html#formatCharacter" class="link">Source</a> <a href="#v:formatCharacter" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:ISO8601:7"></span> <a href="Data-Time-Format-ISO8601.html#t:ISO8601" title="Data.Time.Format.ISO8601">ISO8601</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Format.ISO8601.html#line-384" class="link">Source</a> <a href="#t:ISO8601" class="selflink">#</a></td><td class="doc"><p><code>PyYmMdD</code> (ISO 8601:2004(E) sec. 4.4.3.2)</p></td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:ISO8601:7"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-ISO8601.html">Data.Time.Format.ISO8601</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:iso8601Format">iso8601Format</a> :: <a href="Data-Time-Format-ISO8601.html#t:Format" title="Data.Time.Format.ISO8601">Format</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Format.ISO8601.html#iso8601Format" class="link">Source</a> <a href="#v:iso8601Format" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:CalendarDiffDays:ParseTime:8"></span> <a href="Data-Time-Format-Internal.html#t:ParseTime" title="Data.Time.Format.Internal">ParseTime</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a></span> <a href="src/Data.Time.Format.Parse.Instances.html#line-380" class="link">Source</a> <a href="#t:ParseTime" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:CalendarDiffDays:ParseTime:8"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-Parse-Instances.html">Data.Time.Format.Parse.Instances</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:substituteTimeSpecifier">substituteTimeSpecifier</a> :: proxy <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Format.html#t:TimeLocale" title="Data.Time.Format">TimeLocale</a> -&gt; <a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="src/Data.Time.Format.Parse.Class.html#substituteTimeSpecifier" class="link">Source</a> <a href="#v:substituteTimeSpecifier" class="selflink">#</a></p><p class="src"><a href="#v:parseTimeSpecifier">parseTimeSpecifier</a> :: proxy <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Format.html#t:TimeLocale" title="Data.Time.Format">TimeLocale</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> ParseNumericPadding -&gt; <a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a> -&gt; <a href="../base/Text-ParserCombinators-ReadP.html#t:ReadP" title="Text.ParserCombinators.ReadP">ReadP</a> <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="src/Data.Time.Format.Parse.Class.html#parseTimeSpecifier" class="link">Source</a> <a href="#v:parseTimeSpecifier" class="selflink">#</a></p><p class="src"><a href="#v:buildTime">buildTime</a> :: <a href="Data-Time-Format.html#t:TimeLocale" title="Data.Time.Format">TimeLocale</a> -&gt; [(<a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a>, <a href="../base/Data-String.html#t:String" title="Data.String">String</a>)] -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Format.Parse.Class.html#buildTime" class="link">Source</a> <a href="#v:buildTime" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><a href="#g:3" id="g:3"><h1>Gregorian calendar</h1></a><div class="top"><p class="src"><a id="v:toGregorian" class="def">toGregorian</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; (<a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a>, <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a>) <a href="src/Data.Time.Calendar.Gregorian.html#toGregorian" class="link">Source</a> <a href="#v:toGregorian" class="selflink">#</a></p><div class="doc"><p>Convert to proleptic Gregorian calendar. First element of result is year, second month number (1-12), third day (1-31).</p></div></div><div class="top"><p class="src"><a id="v:fromGregorian" class="def">fromGregorian</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#fromGregorian" class="link">Source</a> <a href="#v:fromGregorian" class="selflink">#</a></p><div class="doc"><p>Convert from proleptic Gregorian calendar. First argument is year, second month number (1-12), third day (1-31).
 Invalid values will be clipped to the correct range, month first, then day.</p></div></div><div class="top"><p class="src"><a id="v:fromGregorianValid" class="def">fromGregorianValid</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#fromGregorianValid" class="link">Source</a> <a href="#v:fromGregorianValid" class="selflink">#</a></p><div class="doc"><p>Convert from proleptic Gregorian calendar. First argument is year, second month number (1-12), third day (1-31).
 Invalid values will return Nothing</p></div></div><div class="top"><p class="src"><a id="v:showGregorian" class="def">showGregorian</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="src/Data.Time.Calendar.Gregorian.html#showGregorian" class="link">Source</a> <a href="#v:showGregorian" class="selflink">#</a></p><div class="doc"><p>Show in ISO 8601 format (yyyy-mm-dd)</p></div></div><div class="top"><p class="src"><a id="v:gregorianMonthLength" class="def">gregorianMonthLength</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="src/Data.Time.Calendar.Gregorian.html#gregorianMonthLength" class="link">Source</a> <a href="#v:gregorianMonthLength" class="selflink">#</a></p><div class="doc"><p>The number of days in a given month according to the proleptic Gregorian calendar. First argument is year, second is month.</p></div></div><div class="top"><p class="src"><a id="v:addGregorianMonthsClip" class="def">addGregorianMonthsClip</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#addGregorianMonthsClip" class="link">Source</a> <a href="#v:addGregorianMonthsClip" class="selflink">#</a></p><div class="doc"><p>Add months, with days past the last day of the month clipped to the last day.
 For instance, 2005-01-30 + 1 month = 2005-02-28.</p></div></div><div class="top"><p class="src"><a id="v:addGregorianMonthsRollOver" class="def">addGregorianMonthsRollOver</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#addGregorianMonthsRollOver" class="link">Source</a> <a href="#v:addGregorianMonthsRollOver" class="selflink">#</a></p><div class="doc"><p>Add months, with days past the last day of the month rolling over to the next month.
 For instance, 2005-01-30 + 1 month = 2005-03-02.</p></div></div><div class="top"><p class="src"><a id="v:addGregorianYearsClip" class="def">addGregorianYearsClip</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#addGregorianYearsClip" class="link">Source</a> <a href="#v:addGregorianYearsClip" class="selflink">#</a></p><div class="doc"><p>Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary.
 For instance, 2004-02-29 + 2 years = 2006-02-28.</p></div></div><div class="top"><p class="src"><a id="v:addGregorianYearsRollOver" class="def">addGregorianYearsRollOver</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#addGregorianYearsRollOver" class="link">Source</a> <a href="#v:addGregorianYearsRollOver" class="selflink">#</a></p><div class="doc"><p>Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary.
 For instance, 2004-02-29 + 2 years = 2006-03-01.</p></div></div><div class="top"><p class="src"><a id="v:addGregorianDurationClip" class="def">addGregorianDurationClip</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#addGregorianDurationClip" class="link">Source</a> <a href="#v:addGregorianDurationClip" class="selflink">#</a></p><div class="doc"><p>Add months (clipped to last day), then add days</p></div></div><div class="top"><p class="src"><a id="v:addGregorianDurationRollOver" class="def">addGregorianDurationRollOver</a> :: <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> <a href="src/Data.Time.Calendar.Gregorian.html#addGregorianDurationRollOver" class="link">Source</a> <a href="#v:addGregorianDurationRollOver" class="selflink">#</a></p><div class="doc"><p>Add months (rolling over to next month), then add days</p></div></div><div class="top"><p class="src"><a id="v:diffGregorianDurationClip" class="def">diffGregorianDurationClip</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.Gregorian.html#diffGregorianDurationClip" class="link">Source</a> <a href="#v:diffGregorianDurationClip" class="selflink">#</a></p><div class="doc"><p>Calendrical difference, with as many whole months as possible</p></div></div><div class="top"><p class="src"><a id="v:diffGregorianDurationRollOver" class="def">diffGregorianDurationRollOver</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:CalendarDiffDays" title="Data.Time.Calendar">CalendarDiffDays</a> <a href="src/Data.Time.Calendar.Gregorian.html#diffGregorianDurationRollOver" class="link">Source</a> <a href="#v:diffGregorianDurationRollOver" class="selflink">#</a></p><div class="doc"><p>Calendrical difference, with as many whole months as possible.
 Same as <code><a href="Data-Time-Calendar.html#v:diffGregorianDurationClip" title="Data.Time.Calendar">diffGregorianDurationClip</a></code> for positive durations.</p></div></div><div class="top"><p class="src"><a id="v:isLeapYear" class="def">isLeapYear</a> :: <a href="../base/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="src/Data.Time.Calendar.OrdinalDate.html#isLeapYear" class="link">Source</a> <a href="#v:isLeapYear" class="selflink">#</a></p><div class="doc"><p>Is this year a leap year according to the proleptic Gregorian calendar?</p></div></div><a href="#g:4" id="g:4"><h1>Week</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:DayOfWeek" class="def">DayOfWeek</a> <a href="src/Data.Time.Calendar.Week.html#DayOfWeek" class="link">Source</a> <a href="#t:DayOfWeek" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Monday" class="def">Monday</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Tuesday" class="def">Tuesday</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Wednesday" class="def">Wednesday</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Thursday" class="def">Thursday</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Friday" class="def">Friday</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Saturday" class="def">Saturday</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Sunday" class="def">Sunday</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:DayOfWeek">Instances</h4><details id="i:DayOfWeek" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:DayOfWeek:Enum:1"></span> <a href="../base/Prelude.html#t:Enum" title="Prelude">Enum</a> <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a></span> <a href="src/Data.Time.Calendar.Week.html#line-22" class="link">Source</a> <a href="#t:DayOfWeek" class="selflink">#</a></td><td class="doc"><p>&quot;Circular&quot;, so for example <code>[Tuesday ..]</code> gives an endless sequence.
 Also: <code><a href="../base/Prelude.html#v:fromEnum" title="Prelude">fromEnum</a></code> gives [1 .. 7] for [Monday .. Sunday], and <code><a href="../base/Prelude.html#v:toEnum" title="Prelude">toEnum</a></code> performs mod 7 to give a cycle of days.</p></td></tr><tr><td colspan="2"><details id="i:id:DayOfWeek:Enum:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Week.html">Data.Time.Calendar.Week</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> <a href="../base/src/GHC.Enum.html#succ" class="link">Source</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> <a href="../base/src/GHC.Enum.html#pred" class="link">Source</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> <a href="../base/src/GHC.Enum.html#toEnum" class="link">Source</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="../base/src/GHC.Enum.html#fromEnum" class="link">Source</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; [<a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a>] <a href="../base/src/GHC.Enum.html#enumFrom" class="link">Source</a> <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; [<a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a>] <a href="../base/src/GHC.Enum.html#enumFromThen" class="link">Source</a> <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; [<a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a>] <a href="../base/src/GHC.Enum.html#enumFromTo" class="link">Source</a> <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; [<a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a>] <a href="../base/src/GHC.Enum.html#enumFromThenTo" class="link">Source</a> <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:DayOfWeek:Read:2"></span> <a href="../base/Text-Read.html#t:Read" title="Text.Read">Read</a> <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a></span> <a href="src/Data.Time.Calendar.Week.html#line-18" class="link">Source</a> <a href="#t:DayOfWeek" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:DayOfWeek:Read:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Week.html">Data.Time.Calendar.Week</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> <a href="../base/src/GHC.Read.html#readsPrec" class="link">Source</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="../base/Text-ParserCombinators-ReadP.html#t:ReadS" title="Text.ParserCombinators.ReadP">ReadS</a> [<a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a>] <a href="../base/src/GHC.Read.html#readList" class="link">Source</a> <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="../base/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> <a href="../base/src/GHC.Read.html#readPrec" class="link">Source</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="../base/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> [<a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a>] <a href="../base/src/GHC.Read.html#readListPrec" class="link">Source</a> <a href="#v:readListPrec" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:DayOfWeek:Show:3"></span> <a href="../base/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a></span> <a href="src/Data.Time.Calendar.Week.html#line-18" class="link">Source</a> <a href="#t:DayOfWeek" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:DayOfWeek:Show:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Week.html">Data.Time.Calendar.Week</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="../base/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="../base/src/GHC.Show.html#showsPrec" class="link">Source</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a> <a href="../base/src/GHC.Show.html#show" class="link">Source</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a>] -&gt; <a href="../base/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="../base/src/GHC.Show.html#showList" class="link">Source</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:DayOfWeek:Eq:4"></span> <a href="../base/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a></span> <a href="src/Data.Time.Calendar.Week.html#line-18" class="link">Source</a> <a href="#t:DayOfWeek" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:DayOfWeek:Eq:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Calendar-Week.html">Data.Time.Calendar.Week</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:DayOfWeek:FormatTime:5"></span> <a href="Data-Time-Format-Internal.html#t:FormatTime" title="Data.Time.Format.Internal">FormatTime</a> <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a></span> <a href="src/Data.Time.Format.Format.Instances.html#line-87" class="link">Source</a> <a href="#t:FormatTime" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:DayOfWeek:FormatTime:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Data-Time-Format-Format-Instances.html">Data.Time.Format.Format.Instances</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:formatCharacter">formatCharacter</a> :: <a href="../base/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="../base/Data-Char.html#t:Char" title="Data.Char">Char</a> -&gt; <a href="../base/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (FormatOptions -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> -&gt; <a href="../base/Data-String.html#t:String" title="Data.String">String</a>) <a href="src/Data.Time.Format.Format.Class.html#formatCharacter" class="link">Source</a> <a href="#v:formatCharacter" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:dayOfWeek" class="def">dayOfWeek</a> :: <a href="Data-Time-Calendar.html#t:Day" title="Data.Time.Calendar">Day</a> -&gt; <a href="Data-Time-Calendar.html#t:DayOfWeek" title="Data.Time.Calendar">DayOfWeek</a> <a href="src/Data.Time.Calendar.Week.html#dayOfWeek" class="link">Source</a> <a href="#v:dayOfWeek" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.25.1</p></div></body></html>